package com.tool.engine.config;

import lombok.Data;


@Data
public class ExportTaskProperties {
    private int corePoolSize;
    private int maxPoolSize;
    private long keepAliveSeconds=60;
    private int queueCapacity=100;
    private int batch =2000;
    private int writeCount =2;
    private String filePath = "/data/excel/";
    private int factor = 60;

    public ExportTaskProperties() {
        this.corePoolSize = Runtime.getRuntime().availableProcessors();
        this.maxPoolSize = Runtime.getRuntime().availableProcessors() * 2;
    }
}
